package com.ls.controller.banner.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @ClassName EditSBannerModel
 * @Description 编辑轮播图model
 * @Author pengyu
 * @Date 2024/6/27 17:14
 * @Version 1.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class EditBannerModel {
    /** 轮播图id */
    @NotNull(message = "轮播图id不得为空")
    private Long bannerId;
    /** 轮播图描述 */
    private String title;
    /** 轮播图图片地址 */
    @NotBlank(message = "轮播图图片地址不得为空")
    private String img;
    /** 轮播图跳转地址 */
    private String url;
}
